package com.smartbands.manage.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smartbands.common.entity.UserInfo;
import com.smartbands.manage.mapper.UserInfoMapper;
import com.smartbands.manage.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mtf
 * @create 2020-12-16-16:25
 */
@Slf4j
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Override
    public UserInfo getById(Integer id) {
        UserInfo userInfo=null;
        userInfo  = baseMapper.selectById(id);
        return userInfo;
    }

    @Override
    public List<UserInfo> getAll() {
        List<UserInfo> userInfoList=baseMapper.selectAll();
        return userInfoList;
    }
}
